import {fetchWithAuth} from "@/lib/fetchWithAuth";

const ARTICLES_API_URL = "http://localhost:8000/articles";


export default async function Page() {
    // 访问自定义的代理/workouts/workouts
    const res = await fetchWithAuth(ARTICLES_API_URL, {method: "GET"});
    const data = await res.json();
    return (
        <main className="max-w-md mx-auto py-5">
            {JSON.stringify(data)}
        </main>
    );
}
